package com.hst.web.base.ui;

import java.sql.Timestamp;

import com.hst.core.meta.MetaData;
import com.hst.core.meta.annotation.EField;
import com.hst.core.meta.annotation.EInfo;
import com.hst.core.meta.annotation.FieldQuery;
import com.hst.web.base.entity.TInvitationCode;
import com.hst.web.base.proxy.InvitationCodeProxy;

/**
 * @author duyong
 * 邀请码管理
 *
 */
@EInfo(name = "invitation_code", title = "邀请码", entity = TInvitationCode.class, proxy = InvitationCodeProxy.class)
public class InvitationCode extends MetaData {

	@EField(title = "邀请码", form = 3, idx = 1)
	private String invitationCode;

	@EField(title = "生成人员",form=0, viewer = "dict.user-all", idx = 2)
	private String opCreate;

	@EField(title = "生成时间|createTime",form=0, idx = 3)
	private Timestamp createTime;

	@EField(title = "有效标识", query = FieldQuery.EQ, editor = "select.invitationValid", viewer = "dict.invitationValid", validate = "required", idx = 6)
	private Integer valid;
	
	@EField(title = "注册用户名/账号", list=false, idx = 4)
	private String userName;

	@EField(title = "使用时间", list=false, idx = 5)
	private Timestamp registerTime;

	public String getInvitationCode() {
		return invitationCode;
	}

	public void setInvitationCode(String invitationCode) {
		this.invitationCode = invitationCode;
	}

	public String getOpCreate() {
		return opCreate;
	}

	public void setOpCreate(String opCreate) {
		this.opCreate = opCreate;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public Integer getValid() {
		return valid;
	}

	public void setValid(Integer valid) {
		this.valid = valid;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Timestamp getRegisterTime() {
		return registerTime;
	}

	public void setRegisterTime(Timestamp registerTime) {
		this.registerTime = registerTime;
	}
}
